﻿@model AlmaDatabase.Criterion

@{
    ViewContext.Controller.ViewBag.Breadcrumb.Enter("Critères");
}
<div class="fullcol">
<h1>Création d'un nouveau critère</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
        <div class="editor-label">
           Nom
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            Unité
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Unit)
            @Html.ValidationMessageFor(model => model.Unit)
        </div>
        <p>
            <input type="submit" value="Créer" />
        </p>
}
</div>